package com.hpeu_01.day0111;

import java.util.Scanner;

public class CheckAccountDemo {
    public static void main(String[] args) {
        //创建键盘输入对象
        Scanner scanner = new Scanner(System.in);
        Account account = new CheckAccount(1001,20000.0,0.045,5000.0);
        while (true){
            System.out.println("请输入取款金额：");
            double drawMoney = scanner.nextDouble();
            account.withdraw(drawMoney);
        }

    }
}
